<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post">
    {% csrf_token %}
    {{ formset.management_form }}
    <table>
        <thead>
        <tr>
            <td>标题</td>
            <td>url</td>
            <td>name</td>
            <td>菜单</td>
            <td>父权限</td>
        </tr>
        </thead>
        <tbody>
        {% for form in formset %}
            <tr>
                {% for field in form %}
                    <td>{{ field }} <span style="color: red" >{{ field.errors.0 }}</spanst></td>
                {% endfor %}
            </tr>
        {% endfor %}

        </tbody>
    </table>
<input type="submit" value="添加">
</form>
</body>
</html>